//
//  RaidersDetailController.m
//  MindBox
//
//  Created by MS on 16-1-7.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "RaidersDetailController.h"

@interface RaidersDetailController ()

@end

@implementation RaidersDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.webView.scrollView.bounces = YES;
    
    if (self.urlStr) {
        
        [self loadNewDataWithUrlStr:self.urlStr];
    }
    
    
}

-(void)setNavBar
{
    [super setNavBar];
    
    MyNavigationItem * rightItem1 =[MyNavigationItem navigationItemWithImage:@"ic_bg_white_more" andHighlightImage:@"ic_bg_white_more" andTag:0 andTitle:nil addTarget:self action:@selector(rightClick:)];
    MyNavigationItem * rightItem2 =[MyNavigationItem navigationItemWithImage:@"ic_bg_white_collect" andHighlightImage:@"ic_bg_white_collect" andTag:1 andTitle:nil addTarget:self action:@selector(rightClick:)];
    
    MyNavigationItem * rightItem3 =[MyNavigationItem navigationItemWithImage:@"ic_bg_white_share" andHighlightImage:@"ic_bg_white_share" andTag:2 andTitle:nil addTarget:self action:@selector(rightClick:)];

    [self.navBar setNavigationBarWithBgImageName:@"无" andTitle:nil andTitleView:nil andLeftItems:nil andRightItems:@[rightItem1,rightItem2,rightItem3]];
    
}

-(void)dealloc
{
//    NSLog(@"RaidersDetailController卸载");
}

-(void)rightClick:(UIButton *)btn
{
    NSLog(@"%ld",btn.tag);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
